package com.wuliupai.delivery.wuliupaidelivery.utils;

import android.util.Log;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Descriptions：Log的工具类
 * <p>
 * Author：ChenME
 * Date：11/10/2016
 * Email：ibelieve1210@163.com
 */
public class LogUtils {
    private static final boolean DEBUG = true;


    /**
     * 打印Log
     *
     * @param msg
     */
    public static void log(String msg) {
        if (DEBUG) {
            String format = "yyyy-MM-dd HH:mm:ss";
            SimpleDateFormat sdf = new SimpleDateFormat(format);
            Log.i("wlp", sdf.format(new Date()) + " ~~~ " + msg);
        }
    }
}